import Vue from 'vue'
import VueSvgIcon from '@/components/VueSvgIcon' // svg组件
 
// register globally
Vue.component('svg-icon', VueSvgIcon)
 
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('./svg', false, /\.svg$/)
requireAll(req)